package com.buba.personnel.controller;

import com.buba.personnel.service.DepartInfoService;
import com.buba.pojo.DepartInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 部门控制层
 */
@RestController
public class DepartInfoController {
    @Autowired
    private DepartInfoService departInfoService;

    /**
     * 查询部门信息
     * @return
     */
    @RequestMapping("/selDepartInfo")
    public List<DepartInfo> selDepartInfo(){
        return departInfoService.selDepartInfo();
    }
}
